<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class OrderDistance extends Model
{

    protected $table = 'order_distance';

    protected $casts = [
        'details' => 'array',
        'driver_details' => 'array',
    ];

    public $timestamps = false;

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     * 订单表
     */
    public function orders()
    {
        return $this->hasOne(Orders::class, 'id', 'order_id');
    }

}
